package com.xujl.mvcbind.adapter.provider;

import android.view.View;

import com.chad.library.adapter.base.binder.BaseItemBinder;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.HashMap;
import java.util.Map;

import androidx.annotation.CallSuper;

public abstract class AbsItemBinder<T, VH extends BaseViewHolder> extends BaseItemBinder<T, VH> {
    private Map<String, Object> cacheMap = new HashMap<>();

    @CallSuper
    @Override
    public void convert (VH vh, T t) {
        for (int i = 0; i < 100; i++) {
            cacheMap.put(vh.toString() + String.valueOf(i), new BaseViewHolder(new View(vh.itemView.getContext())));
        }
//        try {
//            Thread.sleep(100);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }

    }
}
